﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;





public class SearchProjectCv extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SearchProjectCv";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_PROJECT_ID = "projectId";
	public static final String ALIAS_CV_ID = "cvId";
	public static final String ALIAS_COMPANY_ID = "companyId";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_CREATE_DT = "createDt";
	
	//0 待联系  默认 10 已发JD  15 联系中 20顾问面试 30已推荐  40客户面试 50录用 60保证期离职  70保证期通过  -10不考虑
	//0 待联系  默认 10  联系中  15已发JD 20顾问面试 30已推荐  40客户面试 50录用 60保证期离职  70保证期通过  -10不考虑
	public static final Integer STATUS_WAIT = new Integer(0);
	public static final Integer STATUS_JD = new Integer(15);
	public static final Integer STATUS_LX = new Integer(10);
	public static final Integer STATUS_GI = new Integer(20);
	public static final Integer STATUS_RECOM = new Integer(30);
	public static final Integer STATUS_KI = new Integer(40);
	public static final Integer STATUS_OFFER = new Integer(50);
	public static final Integer STATUS_OFFER_NOPASS = new Integer(60);
	public static final Integer STATUS_OFFER_PASS = new Integer(70);
	public static final Integer STATUS_NO = new Integer(-10);
	//date formats
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	@NotNull 
	private java.lang.Integer projectId;
	@NotNull 
	private java.lang.Integer cvId;
	
	private java.lang.Integer companyId;
	@Length(max=50)
	private java.lang.String creator;
	
	private java.util.Date createDt;
	//columns END
	private Integer deptId;
	private Integer titleId;
	private String comment;
	private String modifier;
	private java.util.Date modifiedDt;
    private Integer status;
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public Integer getTitleId() {
		return titleId;
	}

	public void setTitleId(Integer titleId) {
		this.titleId = titleId;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public java.util.Date getModifiedDt() {
		return modifiedDt;
	}

	public void setModifiedDt(java.util.Date modifiedDt) {
		this.modifiedDt = modifiedDt;
	}

	public SearchProjectCv(){
	}

	public SearchProjectCv(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setProjectId(java.lang.Integer value) {
		this.projectId = value;
	}
	
	public java.lang.Integer getProjectId() {
		return this.projectId;
	}
	public void setCvId(java.lang.Integer value) {
		this.cvId = value;
	}
	
	public java.lang.Integer getCvId() {
		return this.cvId;
	}
	public void setCompanyId(java.lang.Integer value) {
		this.companyId = value;
	}
	
	public java.lang.Integer getCompanyId() {
		return this.companyId;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("ProjectId",getProjectId())
			.append("CvId",getCvId())
			.append("CompanyId",getCompanyId())
			.append("Creator",getCreator())
			.append("CreateDt",getCreateDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SearchProjectCv == false) return false;
		if(this == obj) return true;
		SearchProjectCv other = (SearchProjectCv)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

